package vn.edu.tdt.it.NED;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.hp.hpl.jena.ontology.OntClass;
import com.hp.hpl.jena.ontology.OntModel;

import vn.edu.tdt.it.common.VietnameseProcessing;

public class RecognizePattern {

	private static final int MAX_NGRAM = 5;

	Map<String, OntClass> recognizeNE(List<String> document, OntModel model) {
		List<Integer> checked = new ArrayList<Integer>();
		for (int n = 0; n < document.size(); n++) {
			StringBuilder check = new StringBuilder();
			for (int i = 0; i < MAX_NGRAM; i++) {
				check.append(document.get(n + i));
				if (i < MAX_NGRAM - 1) {
					check.append("_");
				}
			}
			if (checked.contains(check.toString())) {
				continue;
			}
			String str = VietnameseProcessing.removeSpecialChar(check.toString());
			if (model.getOntClass(str)!=null) {
				
			}
		}
		return null;
	}

	List<String> extractMention(String paragraph) {

		return null;
	}
}
